package com.chinasoft.maysham.manager.service.role.impl;

import com.chinasoft.maysham.manager.model.Role;
import com.chinasoft.maysham.manager.repo.role.RoleRepo;
import com.chinasoft.maysham.manager.service.role.RoleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
@Slf4j
public class RoleServiceImpl implements RoleService {

    @Resource
    private RoleRepo roleRepo;

    @Override
    public Role findById(String roleId) {
        return roleRepo.findById(roleId, Role.class);
    }
}
